
import type { Route } from '../+types/root';

export async function loader({ params }: Route.LoaderArgs) {
    const postId = params.postId;

    // Simulate fetching post data from an API or database
    // const post = {
    //     id: postId,
    //     title: `Post Title for ${postId}`,
    //     content: `This is the content of the post with ID ${postId}.`
    // };

    return { postId };

}


export async function action() {
    // Simulate an action that might update the post data

}


export default function Post({loaderData}: Route.ComponentProps) {

    return (
        <div>
            {" "}
            {/* <p> Post Id:{}</p> */}
        </div>
    );
}